package pack0625;

import java.util.Scanner;

public class Person {
    public String name;
    public int score;
    String type;

    public Person(String name){
        this.name = name;
        this.score = 0;
    }
    public int showHand() {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入石头剪刀布");
        int n = scan.nextInt();
        if (n==1){
            type = "石头";
        }else if (n==2){
            type = "剪刀";
        }else {
            type = "布";
        }
        return n;


    }
    public void addScore(){
        score+=1;
    }
    public int getScore(){
        return score;
    }
    public String getName(){
        return name;
    }

    public String name() {
        return null;
    }
}
